﻿using System;
using System.Windows;
using Microsoft.Phone.Controls;

namespace Muehle
{
    public partial class Settings : Background
    {
        public Settings()
        {
            InitializeComponent();
        }

        private void clickSave(object sender, EventArgs e)
        {
            (Application.Current as App).HostName = txtHostName.Text;
            (Application.Current as App).PortNum = Convert.ToInt32(txtPortNum.Text);

            if (NavigationService.CanGoBack)
                NavigationService.GoBack();

        }
    }
}